package com.bawei.yangzongcai___day2.MaiDongFangQi.day2;

import android.widget.Toast;

import com.bawei.mvp.Presenter.BoosPresenter;
import com.bawei.yangzongcai___day2.MVPActivity.FoodPreter;
import com.blankj.utilcode.util.ToastUtils;

import java.util.List;

/**
 * create by ertu
 * create on 2021/7/30
 * description
 */
public class AoodPreter extends BoosPresenter<AoodContrect.aoodmodel,AoodContrect.aoodview> {

    
    public AoodPreter(AoodContrect.aoodview viwes, AoodContrect.aoodmodel models) {
        super(viwes, models);
    }

    public void getaoodpreter()
    {
        models.getmoodel(new Aoodcallback() {
            @Override
            public void sueess(List<JavaDuoyidian.DataBean> verticalBeans) {
                ToastUtils.showShort("成功");
                viwes.getview(verticalBeans);
            }

            @Override
            public void fiad() {
                ToastUtils.showShort("失败");
            }
        });
    }
}
